﻿<Window x:Class="Brjnk.GpxExplorer.UI.TrackPointWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:l="clr-namespace:Brjnk.GpxExplorer.Localization"
        Title="{l:Loc titleTrackPoint}" MinHeight="150" MinWidth="300" SizeToContent="WidthAndHeight">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        <Grid Grid.ColumnSpan="2">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="Auto" />
            </Grid.ColumnDefinitions>
            <TextBlock Grid.Column="0" Text="{Binding Parent.Parent.Source.Name}" FontWeight="Bold" />
            <TextBlock Grid.Column="1" Text="{Binding SegmentNumber}" Margin="8 0" />
            <TextBlock Grid.Column="2" Text="{Binding Number}" Margin="8 0" />
        </Grid>
        <TextBlock Text="{l:Loc trackPointPosition}" Grid.Row="1" />
        <TextBox Grid.Row="1" Grid.Column="1" Text="{Binding Source.Position, Converter={StaticResource NullableConverter}}" />
        <TextBlock Text="{l:Loc trackPointTime}" Grid.Row="2" />
        <TextBox Grid.Row="2" Grid.Column="1" Text="{Binding Source.Time, Converter={StaticResource NullableConverter}}" />
        <TextBlock Text="{l:Loc trackPointElevation}" Grid.Row="3" />
        <TextBox Grid.Row="3" Grid.Column="1" Text="{Binding Source.Elevation, Converter={StaticResource NullableConverter}}" />
    </Grid>
</Window>